<template>
  <div class="list" >
    <div class="list-img" >
      <img :src="obj.pic" alt="" />
    </div>
    <div class="list-txt">
      <p>{{ obj.name }}</p>
      <p class="gray">{{ obj.characteristic }}</p>
      <ul>
        <li>
          <div class="red">￥{{obj.minPrice}}</div>
          <p>低价</p>
        </li>
        <li>
          <div class="gray">￥{{obj.originalPrice}}</div>
          <p class="gray">原价</p>
        </li>
        <li>
          <div class="gray">{{obj.stores}}件</div>
          <p class="gray">限量</p>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: "list",
  props:{
        obj:{
            type:Object,
            required: true,
        },
  },

  data() {
    return {};
  },
  created() {

  },
  methods: {

  },
};
</script>

<style lang="scss" scoped>
.list {
  width: 100%;
  height: 2.6rem;
  padding: 0.15rem;
  box-sizing: border-box;
  display: flex;
  background-color: white;
  .list-img {
    width: 2.3rem;
    height: 2.3rem;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .list-txt {
    width: calc(100% - 2.1rem);
    margin-left: 0.2rem;
    height: 2.3rem;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    font-size: 0.28rem;
    ul {
      width: 70%;
      height: 1.43rem;
      display: flex;
      align-items: center;
      // justify-content: space-around;
      li{
          margin-right: 0.5rem;
          font-size: 0.24rem;
          text-align: center;
          p{
            margin-top: 0.15rem;
          }
      }
    }
  }
}
.red{
    color: red;
    font-weight: 900;
}
.gray{
    color: gray;
}
</style>
